package com.xz.demo1.controller;

import com.xz.demo1.domain.Product;
import com.xz.demo1.factory.Factory;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     client   
 * @package    com.xz.demo1.controller  
 * @date   2019/11/24 17:21  
 * @explain
 */
public class Client {

    public static void main(String[] args) {
        Product product;
        product = Factory.getProduct("B");
        product.methodSame();
        product.methodDiff();
    }

}
